@charset "utf-8";
.mj-switch {
  display: inline-block;
  box-sizing: border-box;
  height: 22px;
  min-width: 44px;
  vertical-align: middle;
  border-radius: 20px;
  background: #ccc;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 1s;
  user-select: none;
  position: relative;
}

.mj-switch:after {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 1px;
  top: 1px;
  border-radius: 18px;
  background-color: #fff;
  content: " ";
  cursor: pointer;
  transition:left .2s ease-in-out,width .2s ease-in-out;
  display: inline-block;
}
.mj-switch:active:after {
  width:26px; 
}
.mj-switch.mj-switch-checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

.mj-switch.mj-switch-checked .mj-switch-inner {
  text-align: left;
}
.mj-switch.mj-switch-checked:active:after {
  left:calc(100% - 27px);
}
.mj-switch.mj-switch-checked:after {
  left: calc(100% - 19px);
  right: 1px;
}

.mj-switch .mj-switch-inner {
  color: #fff;
  font-size: 12px;
  display: block;
  height: 22px;
  line-height: 22px;
  padding: 0 7px;
  box-sizing: border-box;
  text-align: right;
  font-style: normal;
}

.mj-switch.disabled {
  cursor: not-allowed;
}

.mj-switch.disabled:after {
  pointer-events: none;
}
.mj-switch-large {
  min-width:56px;
}
.mj-switch-small {
  min-width:28px;
  height:16px;
}
.mj-switch-small:after {
  width:12px;
  height:12px;
}
.mj-switch-small.mj-switch-checked:active:after {
  left:calc(100% - 17px);
}
.mj-switch-small:active:after {
  width:16px; 
}
.mj-switch-small.mj-switch-checked:after {
  left: calc(100% - 13px);
}
